import React, {Component} from 'react';
import {withRouter} from 'react-router-dom';
import './index.less';
import logo from '../../../../assets/images/logo.png';
import {Link} from "react-router-dom";
import {Button} from 'antd';

/*首页头部组件*/
class Header extends Component {

    load= () => {
        this.props.history.replace('/login')
    }

    render() {
        return (
            <div className="web-header" >
                <Link to='/' className="header-logo">
                    <img src={logo} alt="德利人力logo"/>
                </Link>
                <div className="header-menu">
                    <a className="header-menu-dropdown3" href="#banner2">
                        合作伙伴
                    </a>
                    <a className="header-menu-dropdown3" href="#banner3">
                        求职群体
                    </a>
                    <a className="header-menu-dropdown3" href="#banner4">产品服务</a>
                    <a className="header-menu-dropdown3" href="#banner5">关于我们</a>
                </div>
                <Button type="primary" className="header-button" onClick={this.load}>人事后台登录</Button>
            </div>
        )
    }

}

export default withRouter(Header)